<?php

use yii\db\Migration;
use yii\db\Schema;

class m170728_025546_ADD_COLUMN_ORDER_MERGE_STOCK extends Migration
{
    public function up()
    {

        $this->addColumn('{{order_room}}', 'stock', Schema::TYPE_INTEGER. "(1)  DEFAULT  '1' COMMENT '1 计入库存 2  不计入' ");
    }

    public function down()
    {
        echo "m170728_025546_ADD_COLUMN_ORDER_MERGE_STOCK cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
